<html jwcid="@Border" title="message:admin.categoryadmin.header">
	<h1><span jwcid="@Insert" value="message:admin.categoryadmin.header"/></h1>
	<div jwcid="newCategoryDiv@Any">
		<span jwcid="@bookie:ShowErrors" delegate="ognl:delegate"/>
		<span jwcid="@bookie:ShowMessage" message="ognl:message"/>
		<form jwcid="createForm">
			<table>
				<tr>
			      <td><span jwcid="@FieldLabel" field="component:createCategoryName">Category name:</span></td>
			      <td><input jwcid="createCategoryName" size="16"/></td>
			      <td><input jwcid="createSubmit" class="button"/></td>
			    </tr>			
			</table>
		</form>
	</div>
	<div jwcid="categoryList@Any">
		<table id="categoryListTable">
			<tr jwcid="categories">
				<td>
					<span jwcid="updateDialogLink">
						<span jwcid="@Insert" value="ognl:category.name"/>
						(<span jwcid="@Insert" value="ognl:category.eventCount"/>/<span jwcid="@Insert" value="ognl:category.totalEventCount"/>)
					</span>
				</td>
				<td>
					<span jwcid="@If" condition="ognl:category.totalEventCount==0">
						<a jwcid="deleteLink">
							<img jwcid="@Image" image="asset:deleteImageAsset"/>
						</a>
					</span>
					<span jwcid="@Else">
						<img jwcid="@Image" image="asset:readOnlyImageAsset"/>
					</span>
				</td>
			</tr>
		</table>
	</div>
	<div jwcid="updateDialog">
		<div jwcid="showUpdateForm" style="background-color: white;" class="dialog">
			<span jwcid="@bookie:ShowErrors" delegate="ognl:delegate"/>
			<span jwcid="@bookie:ShowMessage" message="ognl:message"/>
			<form jwcid="updateForm">
				<table border="0">
				    <tr>
				      <td><span jwcid="@FieldLabel" field="component:updateCategoryName">Category name:</span></td>
				      <td><input jwcid="updateCategoryName" size="16"/></td>
				      <td><input jwcid="updateSubmit" class="button"/></td>
				      <td><input jwcid="updateCancel" class="button"/></td>
				    </tr>
				</table>
			</form>
		</div>
	</div>
	<div jwcid="createDialog">
		<div jwcid="showCreateForm" class="dialog">
			<form jwcid="createDialogForm">
			<h2><span jwcid="@Insert" value="ognl:messages.format('admin.categoryadmin.create.confirm.message', getName())"/></h2>
			<center><input jwcid="createDialogSubmit" class="button"/>&nbsp;&nbsp;<input jwcid="createDialogCancel" class="button"/></center>
			</form>
		</div>
	</div>
	<div jwcid="deleteDialog">
		<div jwcid="showDeleteForm" class="dialog">
			<form jwcid="deleteForm">
			<h2><span jwcid="@Insert" value="ognl:messages.format('admin.categoryadmin.delete.confirm.message', selectedCategory.name)"/></h2>
			<center><input jwcid="deleteSubmit" class="button"/>&nbsp;&nbsp;<input jwcid="deleteCancel" class="button"/></center>
			</form>
		</div>
	</div>
</html>